package com.acme.domain.bank;

import java.io.Serializable;
import java.util.ArrayList;

import com.acme.domain.account.Account;

public class Client implements Serializable {

	private static final long serialVersionUID = 1L;
	private String name;
	private Gender gender;
	private ArrayList<Account> accounts = new ArrayList<Account>();
	
	public Client(String name, Gender gender) {
		this.name = name;
		this.gender = gender;
	}

	public void addAccount(Account account) {
		this.accounts.add(account);
	}
	
	public String getName() {
		return this.name;
	}
	
	public Gender getGender() {
		return this.gender;
	}
	
	public ArrayList<Account> getAccounts() {
		return this.accounts;
	}
}
